Method and apparatus for generating an intelligent primary key facilitating faster object retrieval

ABSTRACT

Various methods are provided for facilitating a reduction in the number of required search operations during account creation. One example method may comprise causing creation of a user account object configured for storage in a database, the user account object comprising user personal information, causing creation of a user linked account object configured for storage in the database, the user linked account object comprising user credential information, the user linked account object linked the user account object, generating, via processor, an identification field of the user linked account object, generation of the identification field comprising: receiving at least identification information and an account type; accessing a realm; and utilizing a hash function to generate a composite key as a function of the identification information, the account type, and the realm.

TECHNOLOGICAL FIELD

Embodiments of the present invention relate generally to a method,apparatus, and computer program product for facilitating efficientdatabase search operations for large databases, and more specifically,for facilitating a reduction in the number of required searchoperations.

BACKGROUND

Many users store personal information (e.g., email, contacts, pictures,videos, and music) on remote servers, and access that data using thirdparty applications that are provided through a web-browser. For example,cloud computing enables application programs and file storage to beprovided remotely over the Internet, typically through a web browser.Web browsers are capable of running applications that are applicationprogramming interfaces (“API's”) to more robust applications running onremote servers. That is, in cloud computing, a web browser interfaceswith and controls an application program that is running on a remoteserver. Through the web browser, the user can create, edit, save anddelete files on the remote server via the remote application program. Tostore the information, a user must create an account, and to access thepersonal information, a user must log in. Current methods of accountcreation and authentication require a plurality of potentially costlysearch operations to authenticate the user.

BRIEF SUMMARY

A method, apparatus and computer program product are therefore providedaccording to an example embodiment of the present invention forfacilitating efficient database search operations for large databases,and more specifically, for facilitating a reduction in the number ofrequired search operations during account creation, authentication, orthe like. That is, some embodiments of the present invention solve theproblem of what would typically be a number of costly search operationsand converts it to a single operation (e.g., a get operation or thelike) by unique composite key design.

In some embodiments a method may be provided comprising causing creationof a user account object configured for storage in a database, the useraccount object comprising user personal information, causing creation ofa user linked account object configured for storage in the database, theuser linked account object comprising user credential information, theuser linked account object linked to the user account object,generating, via processor, an identification field of the user linkedaccount object, generation of the identification field comprisingreceiving at least (1) identification information, (2) an account type,and (3) realm information, and utilizing a hash function to generate acomposite key as a function of the identification information, theaccount type, and the realm.

In some embodiments, the hash function being deterministic. In someembodiments, the method may further comprise, subsequent to creation,receiving log-in information, the log-in information comprising useridentification information and user account type information, accessingrealm information, and utilizing the hash function to generation asecond composite key of the user identification information and useraccount type information and the realm information, accessing useraccount object by performing a single database search for the secondcomposite key.

In some embodiments, the method may further comprise preventingduplicate user account object creation by, preceding generation of thegeneration of the identification field of the user linked account,utilizing a hash function to generate a potential composite key as afunction of the identification information, the account type, and therealm, performing a single database search for the potential compositekey, and in an instance in which the potential composite key is found inthe database, causing an indication of a conflict to be returned to theuser.

In some embodiments, the identification information is one of a usernameor an email address, and wherein the account type is one of a passwordor account reference. In some embodiments, the identification field ofthe user linked account object being dependent on the realm, the methodfurther comprising providing a realm specific user experience subsequentto access of the user account object. In some embodiments, wherein theidentification information or the account type is used for a pluralityof user account object or user linked account objects.

In some embodiments, an apparatus may be provided comprising at leastone processor and at least one memory including computer program code,the at least one memory and the computer program code configured to,with the processor, cause the apparatus to at least cause creation of auser account object configured for storage in a database, the useraccount object comprising user personal information, cause creation of auser linked account object configured for storage in the database, theuser linked account object comprising user credential information, theuser linked account object linked to the user account object, generate,via processor, an identification field of the user linked accountobject, generation of the identification field comprising receiving atleast (1) identification information, (2) an account type, and (3) realminformation, and utilize a hash function to generate a composite key asa function of the identification information, the account type, and therealm.

In some embodiments, the hash function being deterministic. In someembodiments, the at least one memory and the computer program code arefurther configured to, with the processor, cause the apparatus to,subsequent to creation, receive log-in information, the log-ininformation comprising user identification information and user accounttype information, access realm information, and utilize the hashfunction to generation a second composite key of the user identificationinformation and user account type information and the realm information,access user account object by performing a single database search forthe second composite key.

In some embodiments, the at least one memory and the computer programcode are further configured to, with the processor, cause the apparatusto prevent duplicate user account object creation by, precedinggeneration of the generation of the identification field of the userlinked account, utilize a hash function to generate a potentialcomposite key as a function of the identification information, theaccount type, and the realm, perform a single database search for thepotential composite key, and, in an instance in which the potentialcomposite key is found in the database, cause an indication of aconflict to be returned to the user.

In some embodiments, the identification information is one of a usernameor an email address, and wherein the account type is one of a passwordor account reference. In some embodiments, the identification field ofthe user linked account object being dependent on the realm, and whereinthe at least one memory and the computer program code are furtherconfigured to, with the processor, cause the apparatus to provide arealm specific user experience subsequent to access of the user accountobject. In some embodiments, the identification information or theaccount type is used for a plurality of user account object or userlinked account objects.

In some embodiments, a computer program product may be providedcomprising at least one non-transitory computer-readable storage mediumhaving computer-executable program code instructions stored therein, thecomputer-executable program code instructions comprising program codeinstructions for causing creation of a user account object configuredfor storage in a database, the user account object comprising userpersonal information, causing creation of a user linked account objectconfigured for storage in the database, the user linked account objectcomprising user credential information, the user linked account objectlinked to the user account object, generating, via processor, anidentification field of the user linked account object, generation ofthe identification field comprising receiving at least (1)identification information, (2) an account type, and (3) realminformation, and utilizing a hash function to generate a composite keyas a function of the identification information, the account type, andthe realm.

In some embodiments, the hash function being deterministic. In someembodiments, the computer-executable program code instructions furthercomprise program code instructions for subsequent to creation, receivinglog-in information, the log-in information comprising useridentification information and user account type information, accessingrealm information, and utilizing the hash function to generation asecond composite key of the user identification information and useraccount type information and the realm information, accessing useraccount object by performing a single database search for the secondcomposite key.

In some embodiments, the computer-executable program code instructionsfurther comprise program code instructions for preventing duplicate useraccount object creation by preceding generation of the generation of theidentification field of the user linked account, utilizing a hashfunction to generate a potential composite key as a function of theidentification information, the account type, and the realm, performinga single database search for the potential composite key, and, in aninstance in which the potential composite key is found in the database,causing an indication of a conflict to be returned to the user.

In some embodiments, the identification information is one of a usernameor an email address, and wherein the account type is one of a passwordor account reference. In some embodiments, the identification field ofthe user linked account object being dependent on the realm, and whereinthe computer-executable program code instructions further compriseprogram code instructions for providing a realm specific user experiencesubsequent to access of the user account object. In some embodiments,the identification information or the account type is used for aplurality of user account object or user linked account objects.

In some embodiments, an apparatus may be provided comprising means forcausing creation of a user account object configured for storage in adatabase, the user account object comprising user personal information,means for causing creation of a user linked account object configuredfor storage in the database, the user linked account object comprisinguser credential information, the user linked account object linked tothe user account object, means for generating, via processor, anidentification field of the user linked account object, generation ofthe identification field comprising receiving at least (1)identification information, (2) an account type, and (3) realminformation, and means for utilizing a hash function to generate acomposite key as a function of the identification information, theaccount type, and the realm.

In some embodiments, the hash function being deterministic. In someembodiments, the apparatus may further comprise means for, subsequent tocreation, receiving log-in information, the log-in informationcomprising user identification information and user account typeinformation, means for accessing realm information, and means forutilizing the hash function to generation a second composite key of theuser identification information and user account type information andthe realm information, means for accessing user account object byperforming a single database search for the second composite key.

In some embodiments, the apparatus may further comprise means forpreventing duplicate user account object creation by means for,preceding generation of the generation of the identification field ofthe user linked account, utilizing a hash function to generate apotential composite key as a function of the identification information,the account type, and the realm, means for performing a single databasesearch for the potential composite key, and means for, in an instance inwhich the potential composite key is found in the database, causing anindication of a conflict to be returned to the user.

In some embodiments, the identification information is one of a usernameor an email address, and wherein the account type is one of a passwordor account reference. In some embodiments, the identification field ofthe user linked account object being dependent on the realm, and theapparatus further comprising means for providing a realm specific userexperience subsequent to access of the user account object. In someembodiments, the identification information or the account type is usedfor a plurality of user account object or user linked account objects.

BRIEF DESCRIPTION OF THE DRAWINGS

Having thus described embodiments of the invention in general terms,reference will now be made to the accompanying drawings, which are notnecessarily drawn to scale, and wherein:

FIG. 1 is block diagram of a system that may be specifically configuredin accordance with an example embodiment of the present invention;

FIG. 2 is a block diagram of an apparatus that may be specificallyconfigured in accordance with an example embodiment of the presentinvention;

FIG. 3 is an example flowchart illustrating a method of operating anexample apparatus in accordance with an embodiment of the presentinvention.

FIG. 4 is an example flowchart illustrating a method of operating anexample apparatus in accordance with an embodiment of the presentinvention; and

FIG. 5 is an example flowchart illustrating a method of operating anexample apparatus in accordance with an embodiment of the presentinvention.

DETAILED DESCRIPTION

Some example embodiments will now be described more fully hereinafterwith reference to the accompanying drawings, in which some, but not allembodiments are shown. Indeed, the example embodiments may take manydifferent forms and should not be construed as limited to theembodiments set forth herein; rather, these embodiments are provided sothat this disclosure will satisfy applicable legal requirements. Likereference numerals refer to like elements throughout. The terms “data,”“content,” “information,” and similar terms may be used interchangeably,according to some example embodiments, to refer to data capable of beingtransmitted, received, operated on, and/or stored. Moreover, the term“exemplary”, as may be used herein, is not provided to convey anyqualitative assessment, but instead merely to convey an illustration ofan example. Thus, use of any such terms should not be taken to limit thespirit and scope of embodiments of the present invention.

As used herein, the term “circuitry” refers to all of the following: (a)hardware-only circuit implementations (such as implementations in onlyanalog and/or digital circuitry); (b) to combinations of circuits andsoftware (and/or firmware), such as (as applicable): (i) to acombination of processor(s) or (ii) to portions of processor(s)/software(including digital signal processor(s)), software, and memory(ies) thatwork together to cause an apparatus, such as a mobile phone or server,to perform various functions); and (c) to circuits, such as amicroprocessor(s) or a portion of a microprocessor(s), that requiresoftware or firmware for operation, even if the software or firmware isnot physically present.

This definition of “circuitry” applies to all uses of this term in thisapplication, including in any claims. As a further example, as used inthis application, the term ‘circuitry’ would also cover animplementation of merely a processor (or multiple processors) or portionof a processor and its (or their) accompanying software and/or firmware.The term ‘circuitry’ would also cover, for example and if applicable tothe particular claim element, a baseband integrated circuit orapplication specific integrated circuit for a mobile phone or a similarintegrated circuit in a server, a cellular network device, or othernetwork device.

Referring now of FIG. 1, a system that supports communication, eitherwirelessly or via a wireline, between a computing device 10 and a server12 or other network entity (hereinafter generically referenced as a“server”) is illustrated. As shown, the computing device and the servermay be in communication via a network 14, such as a wide area network,such as a cellular network or the Internet, or a local area network.However, the computing device and the server may be in communication inother manners, such as via direct communications between the computingdevice and the server. The user device 16 will be hereinafter describedas a mobile terminal, but may be either mobile or fixed in the variousembodiments

The computing device 10 and user device 16 may be embodied by a numberof different devices including mobile computing devices, such as apersonal digital assistant (PDA), mobile telephone, smartphone, laptopcomputer, tablet computer, or any combination of the aforementioned, andother types of voice and text communications systems. Alternatively, thecomputing device may be a fixed computing device, such as a personalcomputer, a computer workstation or the like. The server 12 may also beembodied by a computing device and, in one embodiment, is embodied by aweb server. Additionally, while the system of FIG. 1 depicts a singleserver, the server may be comprised of a plurality of servers which maycollaborate to support browsing activity conducted by the computingdevice.

Regardless of the type of device that embodies the computing device 10,the computing device may include or be associated with an apparatus 20as shown in FIG. 2. In this regard, the apparatus may include orotherwise be in communication with a processor 22, a memory device 24, acommunication interface 26 and a user interface 28. As such, in someembodiments, although devices or elements are shown as being incommunication with each other, hereinafter such devices or elementsshould be considered to be capable of being embodied within the samedevice or element and thus, devices or elements shown in communicationshould be understood to alternatively be portions of the same device orelement.

In some embodiments, the processor 22 (and/or co-processors or any otherprocessing circuitry assisting or otherwise associated with theprocessor) may be in communication with the memory device 24 via a busfor passing information among components of the apparatus. The memorydevice may include, for example, one or more volatile and/ornon-volatile memories. In other words, for example, the memory devicemay be an electronic storage device (e.g., a computer readable storagemedium) comprising gates configured to store data (e.g., bits) that maybe retrievable by a machine (e.g., a computing device like theprocessor). The memory device may be configured to store information,data, content, applications, instructions, or the like for enabling theapparatus 20 to carry out various functions in accordance with anexample embodiment of the present invention. For example, the memorydevice could be configured to buffer input data for processing by theprocessor. Additionally or alternatively, the memory device could beconfigured to store instructions for execution by the processor.

As noted above, the apparatus 20 may be embodied by a computing device10 configured to employ an example embodiment of the present invention.However, in some embodiments, the apparatus may be embodied as a chip orchip set. In other words, the apparatus may comprise one or morephysical packages (e.g., chips) including materials, components and/orwires on a structural assembly (e.g., a baseboard). The structuralassembly may provide physical strength, conservation of size, and/orlimitation of electrical interaction for component circuitry includedthereon. The apparatus may therefore, in some cases, be configured toimplement an embodiment of the present invention on a single chip or asa single “system on a chip.” As such, in some cases, a chip or chipsetmay constitute means for performing one or more operations for providingthe functionalities described herein.

The processor 22 may be embodied in a number of different ways. Forexample, the processor may be embodied as one or more of varioushardware processing means such as a coprocessor, a microprocessor, acontroller, a digital signal processor (DSP), a processing element withor without an accompanying DSP, or various other processing circuitryincluding integrated circuits such as, for example, an ASIC (applicationspecific integrated circuit), an FPGA (field programmable gate array), amicrocontroller unit (MCU), a hardware accelerator, a special-purposecomputer chip, or the like. As such, in some embodiments, the processormay include one or more processing cores configured to performindependently. A multi-core processor may enable multiprocessing withina single physical package. Additionally or alternatively, the processormay include one or more processors configured in tandem via the bus toenable independent execution of instructions, pipelining and/ormultithreading.

In an example embodiment, the processor 22 may be configured to executeinstructions stored in the memory device 24 or otherwise accessible tothe processor. Alternatively or additionally, the processor may beconfigured to execute hard coded functionality. As such, whetherconfigured by hardware or software methods, or by a combination thereof,the processor may represent an entity (e.g., physically embodied incircuitry) capable of performing operations according to an embodimentof the present invention while configured accordingly. Thus, forexample, when the processor is embodied as an ASIC, FPGA or the like,the processor may be specifically configured hardware for conducting theoperations described herein. Alternatively, as another example, when theprocessor is embodied as an executor of software instructions, theinstructions may specifically configure the processor to perform thealgorithms and/or operations described herein when the instructions areexecuted. However, in some cases, the processor may be a processor of aspecific device (e.g., a head mounted display) configured to employ anembodiment of the present invention by further configuration of theprocessor by instructions for performing the algorithms and/oroperations described herein. The processor may include, among otherthings, a clock, an arithmetic logic unit (ALU) and logic gatesconfigured to support operation of the processor. In one embodiment, theprocessor may also include user interface circuitry configured tocontrol at least some functions of one or more elements of the userinterface 28.

Meanwhile, the communication interface 26 may be any means such as adevice or circuitry embodied in either hardware or a combination ofhardware and software that is configured to receive and/or transmit databetween the computing device 10 and a server 12. In this regard, thecommunication interface 26 may include, for example, an antenna (ormultiple antennas) and supporting hardware and/or software for enablingcommunications wirelessly. Additionally or alternatively, thecommunication interface may include the circuitry for interacting withthe antenna(s) to cause transmission of signals via the antenna(s) or tohandle receipt of signals received via the antenna(s). For example, thecommunications interface may be configured to communicate wirelesslywith the head mounted displays 10, such as via Wi-Fi, Bluetooth or otherwireless communications techniques. In some instances, the communicationinterface may alternatively or also support wired communication. Assuch, for example, the communication interface may include acommunication modem and/or other hardware/software for supportingcommunication via cable, digital subscriber line (DSL), universal serialbus (USB) or other mechanisms. For example, the communication interfacemay be configured to communicate via wired communication with othercomponents of the computing device.

The user interface 28 may be in communication with the processor 22,such as the user interface circuitry, to receive an indication of a userinput and/or to provide an audible, visual, mechanical, or other outputto a user. As such, the user interface may include, for example, akeyboard, a mouse, a joystick, a display, a touch screen display, amicrophone, a speaker, and/or other input/output mechanisms. In someembodiments, a display may refer to display on a screen, on a wall, onglasses (e.g., near-eye-display), in the air, etc. The user interfacemay also be in communication with the memory 24 and/or the communicationinterface 26, such as via a bus.

In an example embodiment of the present invention, a user may utilize asystem, including a computing device, such as a laptop, mobile device orthe like to create an account (e.g., an email account, a social networkaccount, etc.). For example, a user may create a “HERE” account atHERE.com. Creation of the HERE account may create, for example, twoobjects in a database (e.g., dynamoDB or the like) per user creation,the two objects being UserAccount and UserLinkedAccount. UserAccountstores users personal information like first name, last name, email, andaddress and UserLinkedAccount stores users credentials like password,type of login (password/facebook/google), expiration.

An identification field (e.g., UserLinkedAccount_ID) may be based on aplurality of parameters, for example, user's external id, an accounttype and a realm. Using this key, the system may look up a user'slinkedAccount in constant time. Thus the system may reduce threepotential costly search operations (e.g., search by email, followed by afilter by an account type, and followed by filter by realm) to a, insome embodiments, single inexpensive operation (e.g., a GET operation).

FIGS. 3, 4, and 5 illustrate example flowcharts of the exampleoperations performed by a method, apparatus and computer program productin accordance with an embodiment of the present invention. FIG. 3 isshown from the perspective of the user device, FIG. 4 from theperspective of the server, and FIG. 5 from the perspective of thecomputing device. It will be understood that each block of theflowcharts, and combinations of blocks in the flowcharts, may beimplemented by various means, such as hardware, firmware, processor,circuitry and/or other device associated with execution of softwareincluding one or more computer program instructions. For example, one ormore of the procedures described above may be embodied by computerprogram instructions. In this regard, the computer program instructionswhich embody the procedures described above may be stored by a memory 26of an apparatus employing an embodiment of the present invention andexecuted by a processor 24 in the apparatus. As will be appreciated, anysuch computer program instructions may be loaded onto a computer orother programmable apparatus (e.g., hardware) to produce a machine, suchthat the resulting computer or other programmable apparatus provides forimplementation of the functions specified in the flowchart block(s).These computer program instructions may also be stored in anon-transitory computer-readable storage memory that may direct acomputer or other programmable apparatus to function in a particularmanner, such that the instructions stored in the computer-readablestorage memory produce an article of manufacture, the execution of whichimplements the function specified in the flowchart block(s). Thecomputer program instructions may also be loaded onto a computer orother programmable apparatus to cause a series of operations to beperformed on the computer or other programmable apparatus to produce acomputer-implemented process such that the instructions which execute onthe computer or other programmable apparatus provide operations forimplementing the functions specified in the flowchart block(s). As such,the operations of FIGS. 3, 4, and 5, when executed, convert a computeror processing circuitry into a particular machine configured to performan example embodiment of the present invention. Accordingly, theoperations of FIGS. 3, 4, and 5 define an algorithm for configuring acomputer or processing to perform an example embodiment. In some cases,a general purpose computer may be provided with an instance of theprocessor which performs the algorithms of FIGS. 3, 4, and 5 totransform the general purpose computer into a particular machineconfigured to perform an example embodiment.

Accordingly, blocks of the flowchart support combinations of means forperforming the specified functions and combinations of operations forperforming the specified functions. It will also be understood that oneor more blocks of the flowcharts, and combinations of blocks in theflowcharts, can be implemented by special purpose hardware-basedcomputer systems which perform the specified functions, or combinationsof special purpose hardware and computer instructions.

In some embodiments, certain ones of the operations herein may bemodified or further amplified as described below. Moreover, in someembodiments additional optional operations may also be included as shownby the blocks having a dashed outline in FIGS. 3, 4 and 5. It should beappreciated that each of the modifications, optional additions oramplifications below may be included with the operations above eitheralone or in combination with any others among the features describedherein.

In some example embodiments, a method, apparatus and computer programproduct may be configured for facilitating efficient database searchoperations for large databases, and more specifically, for facilitatinga reduction in the number of required search operations during accountcreation using a user device such as a smart phone, cellular phone,tablet, laptop or any type of mobile terminal.

FIG. 3 is an example flowchart illustrating a method for accountcreation in accordance with an embodiment of the present invention. Itshould be appreciated that the operations of FIG. 3 may be performed bya smart phone, though in some embodiments, are not limited to cellularsystems. For example, non-cellular solutions such as a wireless localarea network (WLAN) may similarly permit account creation. Moreover, theoperations of FIG. 3 may be performed by any other computing device,such as a laptop, tablet, or desktop computer or the like utilizing anytype of network.

In an exemplary embodiment of the present invention, a user may utilizea system, including, as described above, a computing device, such as asmart phone or the like to create an account (e.g., an email account, asocial network account, etc.). For example, a user may create a “HERE”account at HERE.com. Creation of the HERE account may create, forexample, two objects in a database (e.g., dynamoDB or the like) per usercreation, the two objects being UserAccount and UserLinkedAccount.UserAccount stores a user's personal information like first name, lastname, email, and address and UserLinkedAccount stores a user'scredentials like password, type of login (email & password/third partyaccount federation (e.g., Facebook®, Google, LinkedIn etc.), expiration,or the like.

As such, as shown in block 305 of FIG. 3, an apparatus, such asapparatus 20 embodied by the user device 16, may be configured to causecreation of a user account object configured for storage in a database,the user account object comprising user personal information. Theapparatus embodied by user device 16 therefore includes means, such asthe processor 22, the communication interface 26 or the like, forcausing creation of a user account object configured for storage in adatabase, the user account object comprising user personal information.In some embodiments, the user personal information may include, forexample, a first name, a last name, an email address, or the like. Asshown in block 310 of FIG. 3, an apparatus, such as apparatus 20embodied by the user device 16, may be configured to cause creation of auser linked account object configured for storage in the database. Theapparatus embodied by user device 16 therefore includes means, such asthe processor 22, the communication interface 26 or the like, forcausing creation of a user linked account object configured for storagein the database. In some embodiments, the user linked account object maycomprise user credential information. In some embodiments, the userlinked account object may be linked to the user account object.

An identification field (e.g., UserLinkedAccount_ID) may also begenerated. The identification field may be based on a plurality ofparameters, for example, user's external id, an account type and arealm. Subsequently, using this key, the system may be configured tolook up a user's linked account in constant time. As shown in block 315of FIG. 3, an apparatus, such as apparatus 20 embodied by the userdevice 16, may be configured to generate, via processor, anidentification field of the user linked account object. The apparatusembodied by user device 16 therefore includes means, such as theprocessor 22, the communication interface 26 or the like, for generatingan identification field of the user linked account object.

As one of ordinary skill in the art would appreciate, hashing is thetransformation of a string of characters into a usually shorterfixed-length value or key that represents the original string. Hashingmay be used to index and retrieve items in a database as it may befaster to find the item using the shorter hashed key than to find itusing the original value. In some embodiments, a hash function utilizedby the system (e.g., SHA1_Hash) may be deterministic, deterministicmeaning that for the same input parameters, the hash function willalways produce the same hash, or output.

In some embodiments, the identification field, (e.g.,UserLinkedAccount_Id) may be computed as such.

UserLinkedAccount_Id = SHA1_Hash { User_id (email/facebook_id) +account_type (password/facebook) + realm (the namespace the account isin, description below) }

In some embodiments, the UserLinkedAccount_ID may be a composite key andmay be computed using the hash of, for example, the above threeparameters (i.e. User_id, account type, and realm). This composite keymay then be stored as id field (primary key) as part of theUserLinkedAccount object in the database. In some embodiments,UserLinkedAccount object may consist of following fields:

case class UserLinkedAccount( id: String, //SHA1(userId, accountType andRealm) hereAccountId: String, // connected with UserAccount.idexternalUserId: String, //example facebook id, email accountType:AccountType, creatorClientId: String, secrets: List[Secret], hereRealm:Realm)

In one exemplary embodiment, a user may sign up for a HERE Account onHere.com using an email address (e.g., abc@gmail.com) and a password.

Using the HASH function above,

UserLinkedAccount_ID=SHA1_Hash (abc@gmail.com+“password”+“HERE”)

In another exemplary embodiment, a user may sign up for an account on,for example, Jaguar companion app page, using an email addressassociated with the companion app page (e.g., xyz@jaguar.com). Using theHASH function above,

UserLinkedAccount_ID=SHA1_Hash (xyz@jaguar.com+“password”+“JAGUAR”)

In another exemplary embodiments, a user may sign up for a HERE Accounton Here.com using Login with Facebook®. As such,

UserLinkedAccount_ID=SHA1_Hash (xyz@jaguar.com+“facebook”+“HERE”)

Accordingly, generating the primary key of the userLinkedAccount objectmay enable a system to retrieve the object in O(1) time during Sign In.Once the object is fetched, the system may enable verification that thestored credentials are same as the one user provided. FIG. 4 is anexample flowchart illustrating a method for use by a network device,such as for example server 12, for performing a log in process, inaccordance with an embodiment of the present invention.

In some embodiments, the HERE Account realms may partition the accountdata into original equipment manufacturer (OEM) namespaces. In otherwords, a system enabling a user to sign up for an account in realm A,will not automatically allow the user to sign in on realm B using thesame email and password or other credentials, such as Facebook® tokensor the like.

In some embodiments, the system may enable, or in other embodiments,require, clients to explicitly opt-in to a realm, by, for example,transmitting a realm value HTTP header (e.g., X-HA-Realm: realm value).In some embodiments, realms may not act as a security measure, butinstead (or also) be configured to drive an OEM differentiated userexperience. For example, a user of here.com may be treated as afirst-time user when visiting jaguar.com. In some embodiments, a usermay technically belong to several realms at once, and his user accountmay hold credentials for multiple realms. Additionally or alternativelyto the sign-in functionality, realms may also affect most other APIs.For example, account emails and webpages may be customized to match OEMbranding of a requested realm. Accordingly, the identification field ofthe user linked account object is dependent on the realm, and as shownin block 320 of FIG. 3, the apparatus 20 embodied by the server 12 maybe configured to provide a realm specific user experience subsequent toaccess of the user account object. The apparatus embodied by thecomputing device therefore includes means, such as the processor 22, thecommunication interface 26 or the like, for providing a realm specificuser experience subsequent to access of the user account object.

Returning to FIG. 4, as shown in block 405 of FIG. 4, the apparatus 20embodied by the server 12 may be configured to receive log-ininformation, the log-in information comprising user identificationinformation and user account type information. The apparatus embodied bythe computing device therefore includes means, such as the processor 22,the communication interface 26 or the like, for receiving log-ininformation, the log-in information comprising user identificationinformation and user account type information.

As shown in block 410 of FIG. 4, the apparatus 20 embodied by the server12 may be configured to access realm information. The apparatus embodiedby the computing device therefore includes means, such as the processor22, the communication interface 26 or the like, for accessing realminformation.

As shown in block 415 of FIG. 4, the apparatus 20 embodied by the server12 may be configured to utilize the hash function to generation a secondcomposite key of the user identification information and user accounttype information and the realm information. The apparatus embodied bythe computing device therefore includes means, such as the processor 22,the communication interface 26 or the like, for utilizing the hashfunction to generation a second composite key of the user identificationinformation and user account type information and the realm information.

As shown in block 420 of FIG. 4, the apparatus 20 embodied by the server12 may be configured to access user account object by performing asingle database search for the second composite key. The apparatusembodied by the computing device therefore includes means, such as theprocessor 22, the communication interface 26 or the like, for accessinguser account object by performing a single database search for thesecond composite key. As such, a log in or authentication process may beperformed with a single search of the database, instead of a pluralityof potentially costly searches.

FIG. 5 is an example flowchart illustrating a method for use by acomputing device for preventing duplicate account creation and/orenforcing uniqueness of, for example, email, username or the like, inaccordance with an embodiment of the present invention.

For example, before creating an account or in the process of creating anaccount, the system may generate what would be the identification fieldof the user account object or user linked account object to determine ifan account already exists. As such, as shown in block 505 of FIG. 3, anapparatus, such as apparatus 20 embodied by the user device 16, may beconfigured to utilize a hash function to generate a potential compositekey as a function of the identification information, the account type,and the realm. The apparatus embodied by user device 16 thereforeincludes means, such as the processor 22, the communication interface 26or the like, for utilizing a hash function to generate a potentialcomposite key as a function of the identification information, theaccount type, and the realm.

Once the potential composite key is generated, the database is searchedto determine if the key already exists. As shown in block 510 of FIG. 3,an apparatus, such as apparatus 20 embodied by the user device 16, maybe configured to perform a single database search for the potentialcomposite key. The apparatus embodied by user device 16 thereforeincludes means, such as the processor 22, the communication interface 26or the like, for performing a single database search for the potentialcomposite key.

If the key exists, the system may indicate to the user that an accountexists or the email has been used or the like. Accordingly, as shown inblock 515 of FIG. 3, an apparatus, such as apparatus 20 embodied by theuser device 16, may be configured to, in an instance in which thepotential composite key is found in the database, cause an indication ofa conflict to be returned to the user. The apparatus embodied by userdevice 16 therefore includes means, such as the processor 22, thecommunication interface 26 or the like, for, in an instance in which thepotential composite key is found in the database, causing an indicationof a conflict to be returned to the user.

Whereas, if the search of the database does not reveal that thepotential composite is already in use, account creation may continue. Asshown in block 520 of FIG. 3, an apparatus, such as apparatus 20embodied by the user device 16, may be configured to, in an instance inwhich the potential composite key is not found in the database, continuethe account creation process. The apparatus embodied by user device 16therefore includes means, such as the processor 22, the communicationinterface 26 or the like, for, in an instance in which the potentialcomposite key is not found in the database, continuing the accountcreation process, for example, as shown in FIG. 3.

Many modifications and other embodiments of the inventions set forthherein will come to mind to one skilled in the art to which theseinventions pertain having the benefit of the teachings presented in theforegoing descriptions and the associated drawings. Therefore, it is tobe understood that the inventions are not to be limited to the specificembodiments disclosed and that modifications and other embodiments areintended to be included within the scope of the appended claims.Moreover, although the foregoing descriptions and the associateddrawings describe example embodiments in the context of certain examplecombinations of elements and/or functions, it should be appreciated thatdifferent combinations of elements and/or functions may be provided byalternative embodiments without departing from the scope of the appendedclaims. In this regard, for example, different combinations of elementsand/or functions than those explicitly described above are alsocontemplated as may be set forth in some of the appended claims.Although specific terms are employed herein, they are used in a genericand descriptive sense only and not for purposes of limitation.

What is claimed is:
 1. A method comprising: causing creation of a useraccount object configured for storage in a database, the user accountobject comprising user personal information; causing creation of a userlinked account object configured for storage in the database, the userlinked account object comprising user credential information, the userlinked account object linked to the user account object; generating, viaa processor, an identification field of the user linked account object,generation of the identification field comprising: receiving at least:(1) identification information; (2) an account type; and (3) realminformation; utilizing a hash function to generate a composite key as afunction of the identification information, the account type, and therealm; subsequent to creation, receiving log-in information, the log-ininformation comprising user identification information and user accounttype information; accessing realm information; utilizing the hashfunction to generation a second composite key of the user identificationinformation and user account type information and the realm information;and accessing the user account object by performing a single databasesearch for the second composite key.
 2. The method according to claim 1,wherein the hash function being deterministic.
 3. The method accordingto claim 1, further comprising: preventing duplicate user account objectcreation by: preceding generation of the generation of theidentification field of the user linked account, utilizing a hashfunction to generate a potential composite key as a function of theidentification information, the account type, and the realm; performinga single database search for the potential composite key; and in aninstance in which the potential composite key is found in the database,causing an indication of a conflict to be returned to the user.
 4. Themethod according to claim 1, wherein the identification information isone of a username or an email address, and wherein the account type isone of a password or account reference.
 5. The method according to claim1, wherein the identification field of the user linked account objectbeing dependent on the realm, claim 1 further comprising: providing arealm specific user experience subsequent to access of the user accountobject.
 6. The method according to claim 1, wherein the identificationinformation or the account type is used for a plurality of user accountobject or user linked account objects.
 7. An apparatus comprising atleast one processor and at least one memory including computer programcode, the at least one memory and the computer program code configuredto, with the processor, cause the apparatus to at least: cause creationof a user account object configured for storage in a database, the useraccount object comprising user personal information; cause creation of auser linked account object configured for storage in the database, theuser linked account object comprising user credential information, theuser linked account object linked to the user account object; generate,via the at least one processor, an identification field of the userlinked account object, generation of the identification fieldcomprising: receiving at least: (1) identification information; (2) anaccount type; and (3) realm information; utilize a hash function togenerate a composite key as a function of the identificationinformation, the account type, and the realm; subsequent to creation,receive log-in information, the log-in information comprising useridentification information and user account type information; accessrealm information; utilize the hash function to generation a secondcomposite key of the user identification information and user accounttype information and the realm information; and access the user accountobject by performing a single database search for the second compositekey.
 8. The apparatus according to claim 7, wherein the hash functionbeing deterministic.
 9. The apparatus according to claim 7, wherein theat least one memory and the computer program code are further configuredto, with the processor, cause the apparatus to: prevent duplicate useraccount object creation by: precede generation of the generation of theidentification field of the user linked account, utilize a hash functionto generate a potential composite key as a function of theidentification information, the account type, and the realm; perform asingle database search for the potential composite key; and in aninstance in which the potential composite key is found in the database,cause an indication of a conflict to be returned to the user.
 10. Theapparatus according to claim 7, wherein the identification informationis one of a username or an email address, and wherein the account typeis one of a password or account reference.
 11. The apparatus accordingto claim 7, wherein the identification field of the user linked accountobject being dependent on the realm, and wherein the at least one memoryand the computer program code are further configured to, with theprocessor, cause the apparatus to: provide a realm specific userexperience subsequent to access of the user account object.
 12. Theapparatus according to claim 7, wherein the identification informationor the account type is used for a plurality of user account object oruser linked account objects.
 13. A computer program product comprisingat least one non-transitory computer-readable storage medium havingcomputer-executable program code instructions stored therein, thecomputer-executable program code instructions comprising program codeinstructions for: causing creation of a user account object configuredfor storage in a database, the user account object comprising userpersonal information; causing creation of a user linked account objectconfigured for storage in the database, the user linked account objectcomprising user credential information, the user linked account objectlinked to the user account object; generating, via a processor, anidentification field of the user linked account object, generation ofthe identification field comprising: receiving at least: (1)identification information; (2) an account type; and (3) realminformation; utilizing a hash function to generate a composite key as afunction of the identification information, the account type, and therealm; subsequent to creation, receiving log-in information, the log-ininformation comprising user identification information and user accounttype information; accessing realm information; utilizing the hashfunction to generation a second composite key of the user identificationinformation and user account type information and the realm information;and accessing the user account object by performing a single databasesearch for the second composite key.
 14. The computer program productaccording to claim 13, wherein the hash function being deterministic.15. The computer program product according to claim 13, wherein thecomputer-executable program code instructions further comprise programcode instructions for: preventing duplicate user account object creationby: preceding generation of the generation of the identification fieldof the user linked account, utilizing a hash function to generate apotential composite key as a function of the identification information,the account type, and the realm; performing a single database search forthe potential composite key; and in an instance in which the potentialcomposite key is found in the database, causing an indication of aconflict to be returned to the user.
 16. The computer program productaccording to claim 13, wherein the identification information is one ofa username or an email address, and wherein the account type is one of apassword or account reference.
 17. The computer program productaccording to claim 13, wherein the identification field of the userlinked account object being dependent on the realm, and wherein thecomputer-executable program code instructions further comprise programcode instructions for: providing a realm specific user experiencesubsequent to access of the user account object.